package org.laobai.shop.goods.entity;

import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;

public class Category implements Serializable {

	private static final long serialVersionUID = -5211143398255499737L;
	private Integer id;
	private Integer parentId;
	@JsonProperty(value = "text")
	private String name;
	private String path;

	private List<Category> nodes;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public List<Category> getNodes() {
		return nodes;
	}

	public void setNodes(List<Category> nodes) {
		this.nodes = nodes;
	}

}
